/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.employee.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 扣发工资Entity
 * @author jyangye
 * @version 2018-01-10
 */
public class ViEmpSKoufa extends DataEntity<ViEmpSKoufa> {
	
	private static final long serialVersionUID = 1L;
	private String employeeId;		// 员工ID

	private String name;		// 姓名
	private Double koufaSalery;		// 扣发工资
	private String koufaReason;		// 扣发原因
	private Integer year;		// 年份
	private Integer month;		// 月份
	private String code;		// 身份证

    private Office comp;
    private Office dept;
    private Office post;
	
	public ViEmpSKoufa() {
		super();
	}

	public ViEmpSKoufa(String id){
		super(id);
	}

	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

    public Office getComp() {
        return comp;
    }

    public void setComp(Office comp) {
        this.comp = comp;
    }
    @ExcelField(title="部门", align=2, sort=40)
    public Office getDept() {
        return dept;
    }

    public void setDept(Office dept) {
        this.dept = dept;
    }
    @ExcelField(title="岗位", align=2, sort=50)
    public Office getPost() {
        return post;
    }

    public void setPost(Office post) {
        this.post = post;
    }


	
	@Length(min=1, max=32, message="姓名长度必须介于 1 和 32 之间")
	@ExcelField(title="姓名", align=2, sort=60)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

    public void setMonth(Integer month) {
        this.month = month;
    }

    @Length(min=0, max=32, message="身份证长度必须介于 0 和 32 之间")
    @ExcelField(title="*身份证", align=2, sort=65, isText = true)
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    @ExcelField(title="*扣发工资", align=2, sort=70)
	public Double getKoufaSalery() {
		return koufaSalery;
	}

	public void setKoufaSalery(Double koufaSalery) {
		this.koufaSalery = koufaSalery;
	}
	
	@Length(min=0, max=64, message="扣发原因长度必须介于 0 和 64 之间")
	@ExcelField(title="扣发原因", align=2, sort=80)
	public String getKoufaReason() {
		return koufaReason;
	}

	public void setKoufaReason(String koufaReason) {
		this.koufaReason = koufaReason;
	}

	@ExcelField(title="*年份", align=2, sort=90)
	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	@ExcelField(title="*月份", align=2, sort=100)
	public Integer getMonth() {
		return month;
	}


}